//生成随机的账户和密码

var stringRandom = require('string-random');
const router = require('express').Router()

// console.log(stringRandom(16, { numbers: true }));  // AgfPTKheCgMvwNqX
// console.log(stringRandom(8, { letters: false }));  // 0889014544916637

router.get('/', (req, res) => {
    const account = stringRandom(17, { numbers: true }) + '.cc.com'
    // const password = stringRandom(8, { letters: false })
    res.send(account)
    // res.send(password)
})

module.exports = router
